package com.test.producer_consumer.example01;

public abstract class AbstractProducer implements Producer,Runnable {
    @Override
    public void run() {
        while (true){
            try{
                produce();
            }catch (InterruptedException e){
                e.printStackTrace();
                break;
            }
        }
    }
}
